﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="InfoAddInterface.aspx.cs"
    Inherits="UserBackGround_InfoAddInterface" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>发布信息</title>
    <style type="text/css">
        .style1
        {
            width: 336px;
            height: 428px;
        }
        .style2
        {
            height: 428px;
        }
    </style>
</head>
<body>

    <script type="text/javascript">
var oEditer;
function CustomValidate(source, arguments)
{
    var value = oEditer.GetXHTML(true);
    if(value=="")
    {
       arguments.IsValid = false;     
    }
    else 
    { 
        arguments.IsValid = true; 
    } 
}
function FCKeditor_OnComplete( editorInstance )
{ 
    oEditer = editorInstance;
}
    </script>

    <form id="form1" runat="server">
    <table>
        <tr>
            <td align="left" valign="top" width="550">
                <table cellpadding="0" cellspacing="0">
                    <tr>
                        <td>
                            <img border="0" height="28" src="images/mianfeifabu.gif" style="width: 572px" />
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 336px; font-size: 12px" align="left">
                            信息类别：
                            <asp:DropDownList ID="one" runat="server" Width="121px" Style="text-align: left"
                                OnSelectedIndexChanged="BuildList" AutoPostBack="true">
                                <asp:ListItem Value="技术供应信息">技术供应信息</asp:ListItem>
                                <asp:ListItem Value="技术需求信息">技术需求信息</asp:ListItem>
                            </asp:DropDownList>
                            <asp:DropDownList ID="dlCategory" runat="server">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td align="left" height="400" valign="middle">
                            <asp:Panel ID="notXQInfoPanel" runat="server">
                                <table style="height: 116px; margin-right: 0px;" cellpadding="0" cellspacing="0"
                                    class="txt">
                                    <tr>
                                        <td style="font-size: 12px" align="left">
                                            信息标题：
                                        </td>
                                        <td style="font-size: 12px" align="left">
                                            <asp:TextBox ID="txtTitle" runat="server" Width="337px" Style="text-align: left"
                                                MaxLength="24"></asp:TextBox>
                                        </td>
                                        <td style="font-size: 12px">
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtTitle"
                                                ErrorMessage="*" ValidationGroup="v1"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" colspan="2" class="style1">
                                            <%@ register assembly="FredCK.FCKeditorV2" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %>
                                            <FCKeditorV2:FCKeditor ID="txtInfo" runat="server" DefaultLanguage="zh-cn" ToolbarSet="Basic"
                                                Height="450px" Width="540px">
                                            </FCKeditorV2:FCKeditor>
                                        </td>
                                        <td style="font-size: 12px" class="style2">
                                            <asp:CustomValidator ID="CustomValidator1" runat="server" ControlToValidate="txtInfo"
                                                ErrorMessage="*" ClientValidationFunction="CustomValidate" ValidateEmptyText="true"></asp:CustomValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 85px; font-size: 12px" align="right">
                                            联系人：
                                        </td>
                                        <td style="width: 336px; font-size: 12px" align="left">
                                            <asp:TextBox ID="txtLinkMan" runat="server"></asp:TextBox>
                                        </td>
                                        <td style="font-size: 12px">
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtLinkMan"
                                                ErrorMessage="*" ValidationGroup="v1"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 85px; height: 24px; font-size: 12px" align="right">
                                            联系电话：
                                        </td>
                                        <td style="width: 336px; height: 24px; font-size: 12px" align="left">
                                            <asp:TextBox ID="txtTel" runat="server"></asp:TextBox><br />
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtTel"
                                                ErrorMessage="格式：电话(3/4位)-（7/8位）手机11位" ValidationExpression="(\d{11})|((\(\d{3,4}\)|\d{3,4}-)?\d{7,8})"
                                                ValidationGroup="v1"></asp:RegularExpressionValidator>
                                        </td>
                                        <td style="height: 24px; font-size: 12px">
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtTel"
                                                ErrorMessage="* 必填项" ValidationGroup="v1"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <asp:Panel ID="XQInfoPanel" runat="server">
                                <table style="width: 629px">
                                <tr>
                                        <td style="width: 600px; font-size: 12px; text-align: left;" align="right">
                                            企业名称：
                                            <asp:TextBox ID="tbComName" runat="server" Style="text-align: left" MaxLength="50"
                                                Width="360"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator19" runat="server" ControlToValidate="tbComName"
                                                ErrorMessage="*" ValidationGroup="v1"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 600px; font-size: 12px; text-align: left;" align="right">
                                            项目名称：
                                            <asp:TextBox ID="tbPrjName" runat="server" Style="text-align: left" MaxLength="50"
                                                Width="360"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tbPrjName"
                                                ErrorMessage="*" ValidationGroup="v1"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 600px; font-size: 12px; text-align: left;" align="right">
                                            项目负责人：
                                            <asp:TextBox ID="tbPrjMan" runat="server" Width="80px" MaxLength="50"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="tbPrjMan"
                                                ErrorMessage="*" ValidationGroup="v1"></asp:RequiredFieldValidator>
                                            部门：
                                            <asp:TextBox ID="tbDept" runat="server" Width="80" MaxLength="50"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="tbDept"
                                                ErrorMessage="*" ValidationGroup="v1"></asp:RequiredFieldValidator>
                                            职务/职称
                                            <asp:TextBox ID="tbRanks" runat="server" Width="80" MaxLength="50"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="tbRanks"
                                                ErrorMessage="*" ValidationGroup="v1"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 600px; font-size: 12px; text-align: left;" align="right">
                                            通讯地址：
                                            <asp:TextBox ID="tbAddress" runat="server" Width="162" MaxLength="50"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="tbAddress"
                                                ErrorMessage="*" ValidationGroup="v1"></asp:RequiredFieldValidator>
                                            邮政编码：<asp:TextBox ID="tbPostCode" runat="server" MaxLength="50"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="tbPostCode"
                                                ErrorMessage="*" ValidationGroup="v1"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 700px; height: 24px; font-size: 12px; text-align: left;" align="right">
                                            联系电话：
                                            <asp:TextBox ID="tbTel" runat="server" Width="162" MaxLength="50"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="tbTel"
                                                ErrorMessage="*" ValidationGroup="v1"></asp:RequiredFieldValidator>
                                            移动电话：<asp:TextBox ID="tbPhone" runat="server" MaxLength="50"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="tbPhone"
                                                ErrorMessage="*" ValidationGroup="v1"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 700px; height: 24px; font-size: 12px; text-align: left;" align="right">
                                            传真号码：
                                            <asp:TextBox ID="tbFx" runat="server" Width="162" MaxLength="50"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ControlToValidate="tbFx"
                                                ErrorMessage="*" ValidationGroup="v1"></asp:RequiredFieldValidator>
                                            电子邮箱：<asp:TextBox ID="tbEmail" runat="server" MaxLength="50"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" ControlToValidate="tbEmail"
                                                ErrorMessage="*" ValidationGroup="v1"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 700px; height: 24px; font-size: 12px; text-align: left;" align="right">
                                            希望合作的方式和要求：
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 700px; height: 24px; font-size: 12px; text-align: left;" align="right">
                                            <asp:TextBox ID="tbWayReq" runat="server" TextMode="MultiLine" Height="80px" Width="470px" MaxLength="500"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server" ControlToValidate="tbWayReq"
                                                ErrorMessage="*" ValidationGroup="v1"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 700px; height: 24px; font-size: 12px; text-align: left;" align="right">
                                            企业基本信息：
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 700px; height: 24px; font-size: 12px; text-align: left;" align="right">
                                            <asp:TextBox ID="tbComInfo" runat="server" TextMode="MultiLine" Height="80px" Width="470px" MaxLength="500"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator15" runat="server" ControlToValidate="tbComInfo"
                                                ErrorMessage="*" ValidationGroup="v1"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 700px; height: 24px; font-size: 12px; text-align: left;" align="right">
                                            企业在生产过程中希望通过产学研合作解决的主要技术问题：
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 700px; height: 24px; font-size: 12px; text-align: left;" align="right">
                                            <asp:TextBox ID="tbProblem" runat="server" TextMode="MultiLine" Height="80px" Width="470px" MaxLength="1000"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server" ControlToValidate="tbProblem"
                                                ErrorMessage="*" ValidationGroup="v1"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 700px; height: 24px; font-size: 12px; text-align: left;" align="right">
                                            企业希望开发的新产品、新技术：
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 700px; height: 24px; font-size: 12px; text-align: left;" align="right">
                                            <asp:TextBox ID="tbNewPrd" runat="server" TextMode="MultiLine" Height="80px" Width="470px" MaxLength="500"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator17" runat="server" ControlToValidate="tbNewPrd"
                                                ErrorMessage="*" ValidationGroup="v1"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 700px; height: 24px; font-size: 12px; text-align: left;" align="right">
                                            如果高校、科研院所有新的科研成果是否有意向开展产学研合作?有何要求？
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 700px; height: 24px; font-size: 12px; text-align: left;" align="right">
                                            <asp:TextBox ID="tbWill" runat="server" TextMode="MultiLine" Height="80px" Width="470px" MaxLength="500"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator18" runat="server" ControlToValidate="tbWill"
                                                ErrorMessage="*" ValidationGroup="v1"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 336px; height: 43px">
                            <asp:ImageButton ID="imgBtnAdd" runat="server" AlternateText="发布信息" Height="46px"
                                OnClick="imgBtnAdd_Click" ImageUrl="images/kaishifa.jpg"  ValidationGroup="v1"/>
                        </td>
                        <td style="height: 43px">
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
